/**
 * Template Hub - Built-in ComfyUI Workflow Templates
 *
 * This module exports all built-in workflow templates that come with the SDK.
 * These templates provide ready-to-use workflows for common AI generation tasks.
 */

import { aiModelFaceHairFixTemplate } from './ai-model-face-hair-fix';
import type { WorkflowTemplateData } from '../types';

/**
 * Collection of all built-in templates
 */
export const builtInTemplates: WorkflowTemplateData[] = [
  aiModelFaceHairFixTemplate
];

/**
 * Get all built-in templates
 */
export function getBuiltInTemplates(): WorkflowTemplateData[] {
  return [...builtInTemplates];
}

/**
 * Get a built-in template by ID
 */
export function getBuiltInTemplate(id: string): WorkflowTemplateData | undefined {
  return builtInTemplates.find(template => template.metadata.id === id);
}

/**
 * Get built-in templates by category
 */
export function getBuiltInTemplatesByCategory(category: string): WorkflowTemplateData[] {
  return builtInTemplates.filter(template => template.metadata.category === category);
}

/**
 * Get built-in templates by tag
 */
export function getBuiltInTemplatesByTag(tag: string): WorkflowTemplateData[] {
  return builtInTemplates.filter(template => template.metadata.tags?.includes(tag));
}

// Export individual templates
export { aiModelFaceHairFixTemplate };